{% if register_form.errors %}
    <div class="form-errors">
        {% for field in register_form %}
            {% for error in field.errors %}
                <p class="form-error red-color"><strong>*{{field.label}}: {{ error|escape }}</strong></p>
            {% endfor %}
        {% endfor %}
        {% for error in register_form.non_field_errors %}
            <p class="form-error red-color"><strong>*{{ error|escape }}</strong></p>
        {% endfor %}
    </div>
{% endif %}
{# Form design is borrowed from "http://www.sanwebe.com/2014/08/css-html-forms-designs" #}
<form class="djacket-form" action="{% url 'user_register' %}" method="POST">
    {% csrf_token %}
    <ul>
        <li>
            <label for="id_username_register">Username*</label>
            <input id="id_username_register" name="username" type="text">
            <span>Enter a username.</span>
        </li>
        <li>
            <label for="id_email_register">Email*</label>
            <input id="id_email_register" name="email" type="email">
            <span>Enter your email.</span>
        </li>
        <li>
            <label for="id_password_register">Password*</label>
            <input id="id_password_regiser" name="password" type="password">
            <span>Enter a password.</span>
        </li>
        <li>
            <input type="hidden" name="next" value="{{ next }}">
            <input class="success" type="submit" value="Register">
        </li>
    </ul>
    <div>
</form>
